package com.example.springboot_demo;

import com.example.springboot_demo.config.RenameEnableUser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
//装配@Enable注解，启动时会自动扫描
@RenameEnableUser
public class SpringbootDemoApplication {
    public static ConfigurableApplicationContext run;

    public static void main(String[] args) {
        run = SpringApplication.run(SpringbootDemoApplication.class, args);
//        OrderService orderService = (OrderService) run.getBean("orderService");
//        orderService.test();
//        Object obj =  run.getBean("com.example.springboot_demo.pojo.Animal");
//        System.out.println(obj);

    }

}
